<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$article['title']}-微知</title>
    <include file="./Application/Home/View/Common/head_meta.html"/>
    <meta name="Keywords" content="微知,{$article['title']},{$article['tags']}">
    <meta name="description" content="微知素材，{$summary}"/>

    <link rel="stylesheet" href="__RESPATH__/css/common.css">
    <link rel="stylesheet" href="__RESPATH__/css/individual/article-preview.css?v=1">
</head>
<body>
    <div class="wrap">
        <!-- 页面头部 -->
        <include file="./Application/Home/View/Common/super_body_import.html" />
        <input type="hidden" data-p="{$_GET['p']}" data-cc="{$_GET['cc']}" id="urldata">
        <div class="content_wrap">
            <input type="hidden" id="article_cd" value="{$article['cd']}">
            <input type="hidden" id="user_login" value="{$user_login}">
            <input type="hidden" id="article_source" value="{$article['source']}">
            <div class="con_head">
                <h2>{$article['title']}</h2>
                <p class="con_time">
                    <if condition="$article['copyright_stat'] gt 0">
                        <span class="common_copyright">
                            <span class="iconfont icon-copyright copyicon"></span>
                            <span>原创</span>
                        </span>
                    </if>
                    {$article['publish_time_millis']|date='Y-m-d',### / 1000}
                </p>
                <p class="category">分类：
                    <if condition="$Think.get.cc neq ''"> 
                        <a href="javascript:void(0)">{$Think.get.cc|get_category_name}</a>
                    <else/>
                        <a href="javascript:void(0)">{$article['category_code']|get_category_name}</a>
                    </if> 
                </p>
            </div>
            <div class="con_left">
                <div class="article_info">
                    <if condition="$article.source neq 'www.cpanet.cn' and $article.source neq 'vision.xitek.com'">
                        <p class="source">来源：&nbsp;{$article['source']|get_source_name}</p>
                    </if>
                    <p class="account_info bw-ellipsis" title="{$article['publisher']}">
                        <span class="iconfont icon-user1"></span>
                        <if condition="$article['biz'] neq ''">
                            <a href="{:U('/profile/index?biz='.$article['biz'].'&platform='.$article['source'].'')}" target="_blank">{$article['publisher']}</a>
                        <else/>
                            <a href="javascript:void(0)" class="platf_link">{$article['publisher']}{$article['biz']}</a>
                        </if>
                    </p>
                    <p class="category">分类：                            
                        <if condition="$Think.get.cc neq ''"> 
                            <a href="/search/articles?cc={$Think.get.cc}" target="_blank">{$Think.get.cc|get_category_name}</a>
                        <else/>
                            <a href="{:U('/search/articles?cc='.$article['category_code'])}" target="_blank">{$article['category_code']|get_category_name}</a>
                        </if>                            
                    </p>
                    <notempty name="article['tags']">
                        <p class="article_tag" id="tags" data="{$article['tags']}">
                            <foreach item="tag" name="article['tagsArray']" >
                                <a href="/tag_preview?tag={$tag}">{$tag}</a>
                            </foreach>
                        </p>
                    </notempty>
                </div>
                <article id="main_content" class="main_content rich_media_content {$sourceClass}">                
                    <if condition="$article['show_cover_pic'] eq 1">
                        <div id="cover_img">
                            <img onerror="this.parentNode.removeChild(this)" src="/refer?url={$article['cover_img_url']}" />
                        </div>
                    </if>
                    {$article['page_content']}
                </article>
                <if condition="$article['source_url'] neq ''">
                    <a href="{$article['source_url']}" class="original-text" target="_blank">阅读原文</a>
                </if>
                <p class="reprint_info hide">转载自 - 微知平台 <span class="o_publisher"></span>的《<a class="o_title" target="_blank"></a>》</p>
                <div class="footer_wrapper" data-articleid="{$article['cd']}" data-title="{$article['title']}" data-img="" data-url="/article?p={$article['cd']}" data-id="{$article['cd']}">
                    <if condition="empty($article['user_login'])">
                        <p class="read_num">阅读：<span id="read_num">{$read_num}</span></p>
                        <p class="praise_num"><span class="iconfont icon-dianzan"></span><span class="like_num">{$like_num}</span></p>
                        <if condition="$favorite eq 'exist'">
                            <button type="button" class="pull-left cz_btn_like cz_btn_opt">
                                <span class="iconfont icon-dianzan"></span>&nbsp;
                                <a class="like_num">{$like_num}</a>
                            </button>
                        <else/>
                            <button type="button" class="pull-left cz_btn_like cz_btn">
                                <span class="iconfont icon-dianzan"></span>&nbsp;
                                <a class="like_num">{$like_num}</a>
                            </button>
                        </if>
                        <if condition="$collect eq 'exist'">
                            <button type="button" class="pull-left cz_btn_collect cz_btn_opt">
                                <span class="iconfont icon-collect"></span>
                                <a>取消收藏</a>
                            </button>
                            <else/>
                            <button type="button" class="pull-left cz_btn_collect cz_btn">
                                <span class="iconfont icon-collect"></span>
                                <a>收藏</a>
                            </button>
                        </if>
                        <if condition="$is_comb eq 1">
                            <button type="button" class="pull-left cz_btn compose check_box" addcar-event><span class="iconfont icon-box"></span>加入合成器</button>
                        <else/>
                            <button type="button" class="pull-left cz_btn compose" addcar-event><span class="iconfont icon-box"></span>加入合成器</button>
                        </if>
                        <div id="share">
                            <p>分享到</p>
                            <ul>
                                <li><a href="javascript:void(0)" class="qzone" title="分享到QQ空间"></a></li>
                                <li><a href="javascript:void(0)" class="weixin" title="分享到微信朋友圈"></a></li>
                                <li><a href="javascript:void(0)" class="sina" title="分享到新浪微博"></a></li>
                            </ul>
                        </div>
                        <div class="art_collect" id="art_collect">
                            <div class="add_collect">
                                <p class="caption">收藏文章</p>
                                <div class="group_list">
                                    <span>选择分组：</span>
                                    <select class="selectpicker group_select" data-width="130px" data-list="true">
                                        <option value="">未分组</option>
                                    </select>
                                    <p class="add_group">
                                        <button type="button" class="establish_group"><span class="iconfont icon-add_graph"></span>创建新分组</button>
                                        <input type="text" placeholder="新分类名称" class="establish hide">
                                    </p>

                                    <button type="button" class="btn btn-success sure" data-cd="{$article[\'cd\']}">确认</button>
                                </div>
                            </div>
                            <div class="cancel_collect hide">
                                <p class="caption">取消收藏</p>
                                <p class="cancel_title">
                                    <span class="iconfont icon-gantanhao green"></span>
                                    确认取消收藏吗？
                                </p>
                                <button class="btn btn-success confirm">确认</button>
                                <button class="btn btn-default cancel" hidden>取消</button>
                            </div>
                        </div>
                    </if>
                    <a data-cnzz-trackevent="文章详情|模板窃取" target="_blank" class="filch_btn" href="/template?cd={$article['cd']}"><span class="iconfont icon-moban1"></span>&nbsp;<span class="filch_text">
                        <if condition="$article['is_self'] eq '1'">保留文章的模板，以后好快速出稿<else/>这篇文章模板很不错哦，偷偷提取之</if></span>
                    </a>
                </div>
            </div>
            <div class="con_right">
                <div class="art_tag">
                    <p><span>文章标签</span></p>
                    <div class="label_box" id="tagscloud"></div>
                </div>
                <div class="guess_like hide">
                    <p><span>猜你喜欢</span></p>
                    <div class="guess_list"></div>
                </div>
            </div>
            <if condition="$article['source'] eq 'mp.weixin.qq.com' and $article['user_name'] neq ''">
                <div class="qr-code">
                    <img src="http://open.weixin.qq.com/qr/code/?username={$article['user_name']}" alt="">
                    <p>微信扫一扫<br/>关注该微信公众号</p>
                </div>
            </if>
            </div>
        </div>
    </div>
    <include file="./Application/Home/View/Common/login_dialog.html" />
    <include file="./Application/Home/View/Common/footer.html" />
    <!--和合并器-->
    <include file="./Application/Home/View/Common/backup/aside_combiner.html"/>
    <script type="text/javascript" data-main="__RESPATH__/js/articleController.js" src="__RESPATH__/js/libs/require.js"></script>
</body>
</html>